package com.aabte.auth.group.infrastructure.persistence;

import com.aabte.auth.group.domain.model.Group;
import com.aabte.auth.group.domain.model.GroupId;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface GroupDAO extends JpaSpecificationExecutor<Group>, JpaRepository<Group, Long> {
    Optional<Group> findByGroupId(GroupId groupId);
}
